home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / infoserv / www / cern / doc / www-talk.archive.Z / www-talk.archive / text0100.txt < prev    next >
Encoding:
Text File  |  1992-11-30  |  3.6 KB  |  111 lines

  1. > Date:         Tue, 26 May 92 09:16:33 EST
  2. > From: John O'Neall <JON@frcpn11.in2p3.fr>
  3.  
  4. John,
  5.  
  6. Thanks for your mails asking about how to make a simple hypertext  
  7. list of files. 
  8.  
  9.  
  10. Let me take your model of the three layers. I sugest that the 1st  
  11. layer
  12.  
  13. >helppage (1st-layer):  various info and pointers to local
  14. >         info that won't change much as well as to WWW proper.
  15. >         Among other things, it'll point to a [...]
  16.  
  17. you write by hand.  You can read the HTML documentation in    
  18. http://info.cern.ch/hypertext/WWW/MarkUp/MarkUp.html
  19. or you can just copy another node which looks like what you want.   
  20. (Get its address and then read it with www -source address). Or both.
  21.  
  22. You might want to put pointers to the general subject index, and the  
  23. index of HEP sites.  Let me know when you set up a server so that I  
  24. can put in on the list!
  25.  
  26. For the second layer,
  27.  
  28. > 2nd-layer list:  this is the thing that will point to ALL the
  29. >    local flat files.  Then I need an automatic (cron'd) procedure
  30. >    to regenerate the list every time I add more flat data
  31. >     files (or periodically).
  32.  
  33.  
  34. This is easy: you generate it with a little shell script. How about  
  35. the one appended to this message?  It generates a hypertext menu of  
  36. files in a set of directories (passed as arguments). You can massage  
  37. it to put in your own title, heading, etc. If you can generate some  
  38. human-readable description of each file, so much the better.  You  
  39. could run this as a cron job into an Overveiw.html file which you  
  40. then publish with httpd, or run it from a server daemon script so  
  41. that the list is generated fresh for every read, and always  
  42. up-to-date.
  43.  
  44. The third layer is your set of files.  If you publish these with a  
  45. server script, you can add to each one a title (if you can generate  
  46. it) and maybe a link back to the list of other documents befre you  
  47. just send the plain text file.
  48.  
  49. You could read some of the tips on the web about ettiquette, etc.
  50.  
  51. >By the way, if such a list already exists in W3 somewhere, I'll be
  52. >happy to point to it too.  And then there's no reason why our server
  53. >shouldn't be accessible to the rest of W3.
  54.  
  55. It would be a great addition to the web!  Let me know when it's up  
  56. and I'll put pointers to it from some overview documents. (evn at the  
  57. experimental stage, I'll mark the links "experimental" if you like).
  58.  
  59. >Tim, any chance of getting the hypertext editor for something other
  60. >than Next one day?  I realize that was the simplest thing to develop
  61. >it on, but I suspect it's not the commonest workstation in HEP.
  62.  
  63. It's on the "hit-list" and we're lookig for volunteers. Maybe the Mac  
  64. browser will be the first to be also an editor. Or maybe one of hte X  
  65. browsers.  I agree the NeXT is not the most common platform! (Though  
  66. it is neat ;-)
  67.  
  68. >Excuse me for rushing, but I'm supposed to present this project to  
  69. the
  70. >HEPIX-F meeting in Paris on Tuesday and this weekend will be a long  
  71. one
  72. > (at least, in France).
  73.  
  74. Good luck! Mail cailliau@(I'm off to the US -- so I'm rushing too!)
  75.  
  76. Mail me or www-talk@info.cern.ch if you have any problems... 
  77.  
  78.  
  79. If you have smart ideas, circulate them to this list too.
  80.  
  81.     Tim
  82.  
  83. __________________
  84.  
  85. #! /bin/sh
  86. # Generate hypertext menu from directory list
  87. echo "<TITLE>Information under: $*</TITLE>"
  88. echo "<H1>$*</H1>"
  89. # If there is a README file include that as plain text
  90. if [ -f $1/README ]; then
  91.     echo "<XMP>"
  92.     cat $1/README
  93.     echo "</XMP>"
  94. fi
  95. # Now generate a list of links to files
  96. echo "<DIR>"
  97. for dir in $*
  98. do (
  99.     cd $dir
  100.     for file in *.html *.txt
  101.     do 
  102.  
  103.     echo "<LI><A HREF=./$dir/$file>Title of $file</A>" 
  104.  
  105.     done
  106.     )
  107. done
  108. echo "</DIR>"
  109.  
  110.  
  111.